<%@page import="cn.lily.com.enviroment.Enviroment"%>
<%@page import="app.portal.dao.Pw_app_paramterBean"%>
<%@ page contentType="text/html; charset=utf-8"%>
<%@ page import="cn.lily.inst.web.frames.FrameConfig"%>
<%@ page import="cn.lily.web.util.context.WebContext"%>
<%@ page import="cn.lily.esb.context.AuthEntity"%>
<%@page import="app.portal.util.UtilMethod"%>
<%@page import="cn.lily.com.db.sql.DBManager"%>
<%@page import="cn.lily.com.db.DBFactory"%>
<%@page import="cn.lily.com.db.container.reader.DataTable"%>
<%@ include file="/frames/logbegin.jsp" %>
<%
	String pw_app_id = request.getParameter("pw_app_id");
	String app_path = request.getParameter("app_path");
	String sql=" select * from ${schema}.PW_APP_PARAMTER where pw_app_id='"+pw_app_id+"'";
	DataTable dataTable=DBFactory.getActionDB().executeQueryTable(sql);
	String para=app_path+"    ";
	while(dataTable.next()) {
		if("".equals(dataTable.getString("PARA_NAM")) ||dataTable.getString("PARA_NAM")==null||"3".equals(dataTable.getString("PARA_TYP"))) {
			para+=" ";
		}else{
			para+=" "+dataTable.getString("PARA_NAM");
		}
		if("".equals(dataTable.getString("PARA_VALUE")) ||dataTable.getString("PARA_VALUE")==null) {
			para+=" ";
		}else{
			para+=" "+dataTable.getString("PARA_VALUE");
		}
	}
	para="'"+para+"'";
	System.out.print(para+"#####################################################");
%>
<%@ include file="/frames/logend.jsp" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<script type="text/javascript"> 
start(<%=para%>);
function start(strPath){
	var objShell = new ActiveXObject("wscript.shell"); 
	objShell.Run(strPath); 
	objShell = null; 
} 
</script>
</head>
<body>
</body>
</html>

